<template>
  <div class="form-check-currency-setting">
    <el-checkbox :value="field.setting.checkCurrency" @input="update" :true-label="1" :false-label="0">{{$t('common.base.isCheckCurrency')}}</el-checkbox>
  </div>
</template>

<script>
/* props */
import { settingProps } from '@src/component/form/components/props';

export default {
  name: 'form-check-currency-setting',
  props: {
    ...settingProps
  },
  methods: {
    update(value) {
      this.$emit('input', value, 'checkCurrency', true);
    }
  }
}
</script>